h1,
h2 {
  font-weight: normal;
  font-size: 26px;
}

h3 {
  text-align: left;
}

ul {
  list-style-type: none;
  padding: 0;

  &.list {
    width: 440px;
    margin: 20px auto;
    text-align: left;
    border-radius: 5px;
    li {
      padding: 0 10px;
      line-height: 40px;
      background-color: #fafafa;
      border-bottom: 1px solid #eee;
      &:last-child {
        border: none;
      }
      &:hover {
        .destroy {
          visibility: visible;
        }
      }
      .destroy {
        position: absolute;
        top: 0;
        right: 0;
        visibility: hidden;
        height: 40px;
        border: none;
        width: 40px;
        background: none;
        cursor: pointer;
        outline: none;
        color: #666;
        background: url() no-repeat center;
      }
      &.view {
        position: relative;
        padding-left: 0;
        input[type=checkbox] {
          // visibility: hidden;
          opacity: 0;
          position: absolute;
          width: 40px;
          height: 40px;
          top: 0;
          left: 0;
          border: none;
          margin: 0;
          padding: 0;
        }
        input[type=text] {
          word-break: break-all;
          padding: 0 60px 0 20px;
          line-height: 40px;
          display: block;
          -webkit-transition: color 0.4s;
          transition: color 0.4s;
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          border: none;
          background: #fde2e2;
          outline: none;
          box-sizing: border-box;
          width: 100%;
          &:focus {
            background-color: #f4f9ff;
          }
        }
        &:before {
          position: absolute;
          display: inline-block;
          content: '';
          width: 40px;
          height: 40px; // border: 1px solid #eee;
          vertical-align: top;
          border-radius: 40px;
          box-sizing: border-box;
          background: url() no-repeat center #ddd;
          border: 10px solid #fafafa;
        }
        label {
          word-break: break-all;
          padding: 0 60px 0 0;
          line-height: 40px;
          margin-left: 45px;
          display: block;
          transition: color 0.4s;
        }
        &.completed {
          &:before {
            background: url() no-repeat center;
          }
          label {
            text-decoration: line-through;
            color: #999;
          }
        }
      }
    }
  }
  &.tags {
    margin: 20px auto;
    text-align: left;
    line-height: 24px;

    li {
      display: inline-block;
      padding: 0 10px;
      font-size: 12px;
      color: #666;
      a {
        text-decoration: none;
      }
      &.selected {
        background-color: #ff8383;
        a {
          color: #fff;
        }
      }
      label {
        cursor: pointer;
      }
    }
    .total {
      float: right;
    }
  }
}

a {
  color: #42b983;
}

.hello {
  width: 440px;
  margin: 0 auto;
}

.clear {
  width: 100%;
  height: 40px;
  border: none;
  color: #fff;
  background-color: #ff8383;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.input {
  width: 400px;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
  border-radius: 5px;
  border: none;
  outline: none;
  &:focus {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(251, 14, 255, 0.15);
  }
}
